<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS属性扩展-清除默认样式</title>
    <style>
        /* 清除默认样式 */
        body,div,p,h1,h2,h3,h4,h5,h6,ul,ol,li,dl,dt,dd,th,input{
            margin: 0;
            padding: 0;
        }
        ul,ol{
            list-style: none;
        }
        h1,h2,h3,h4,h5,h6{
            font-weight: normal;
            font-size: 100%;
        }

        p{
            width: 200px;
            height: 200px;
            background-color: pink;
        }
        div{
            padding-left: 200px;
        }
    </style>
</head>
<body>
    <p>你好，我是一段文字</p>
    <div>
        <ul>
            <li>你好，我是li标签</li>
        </ul>
    </div>
    <h1>你好，我是h1</h1>
    <h2>你好，我是h2</h2>
</body>
</html>